package com.amazon.shop.bean.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 创建时间：14:34 2021/3/18
 *
 * @author lzj
 * @since JDK 1.8.0_171
 * 类说明：
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 */
@Data
public class EmailForm extends BaseDTO {
    /**
     * 邮件模板id
     */
    @NotNull(groups = {BaseGroup.update.class,BaseGroup.del.class}, message = "id 必传")
    private Integer id;
    /**
     * 邮件模板名称
     */
    @NotEmpty(groups = BaseGroup.add.class, message = "mname 必传")
    private String mname;
    /**
     * 邮件模板内容
     */
    @NotEmpty(groups = BaseGroup.add.class, message = "content 必传")
    private String content;

    /**
     * 用户id
     */
    @NotNull(groups = {BaseGroup.add.class}, message = "userid 必传")
    private Integer userid;

    /**
     * 是否是html代码 0不是 1是
     */
    private Boolean ishtml;
}
